package com.example.service;

import com.example.mapper.StudentMapper;
import com.example.mapper.ChangeStudentMsgMapper;
import com.example.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChangeStudentService {
    @Autowired
    ChangeStudentMsgMapper msg;
    @Autowired
    StudentMapper studentMapper;
    public void changeStudentMsg(Student student){
        msg.changeStudentMsg(student);
    }

    public void changeStudentPassword(String studentPassword, String number){
        studentMapper.changeStudentPassword(studentPassword, number);
    }

    public void changenumber(String newPassword, String oldPassword){
        studentMapper.changenumber(newPassword, oldPassword);
    }

    public void changeStudentIdentity(String identity, String number){
        studentMapper.changeStudentIdentity(identity, number);
    }


}
